<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>套壳小程序登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body onload="callpay()">
app努力登录中...
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> 
<script type="text/javascript">
function callpay(){
	wx.miniProgram.getEnv(function(res) {
		if(res.miniprogram==true){
			wx.miniProgram.navigateTo( { url: "/pages/wap/login/index?token={$token}&username={$userdb.nickname}" } );
		}else{
			alert('请在小程序中打开!');
		}
	});
}
</script>

</body>
</html>